-- GENERATED SPELL FOR [Aggi Rumblestomp] --


function spell0_13086(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13086', 5285, 1)
end

function spell1_13086(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13086', 2350, 1)
end

function Sorts_13086(pUnit, Event)
local choix_sorts_13086 = math.random(0, 1)
if choix_sorts_13086 == 0 then
pUnit:RegisterEvent('spell0_13086', 1, 1)
end
if choix_sorts_13086 == 1 then
pUnit:RegisterEvent('spell1_13086', 1, 1)
end
end

function mob13086_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13086', math.random(1500, 3000), 1)
end

function mob13086_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13086_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13086_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13086, 1, 'mob13086_Action')
RegisterUnitEvent(13086, 2, 'mob13086_Leave')
RegisterUnitEvent(13086, 3, 'mob13086_Kill')
RegisterUnitEvent(13086, 4, 'mob13086_Die')
